﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ModuleDuoc.Base
{
    public partial class frmBase : WeifenLuo.WinFormsUI.Docking.DockContent
    {
        public frmBase()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Gọi Event thêm mới
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public virtual void btnThemMoi_Click(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// Gọi Event Lưu lại
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public virtual void btnSave_Click(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// Gọi Even Sửa
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public virtual void btnEdit_Click(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// Gọi Event Hủy phiếu
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public virtual void btnHuyPhieu_Click(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// Gọi Event In phiếu
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public virtual void btnInPhieu_Click(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// Gọi Event Exit
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public virtual void btnExit_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Xác nhận thoát?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                this.Close();
        }

        private void frmBase_Load(object sender, EventArgs e)
        {
            this.pnlContent.Enabled = true;
        }
    }
}
